From: Jasper St. Pierre Date: Thu, 11 Sep 2014 23:40:00 +0000 (-0600) Subject: search: Make sure to clear the timeout X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~2141 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=99c29366ee483e2539a34784d31d343fef8f3850;p=gnome-shell.git search: Make sure to clear the timeout --- diff --git a/js/ui/search.js b/js/ui/search.js index b8ee1b7b2..7998a9bc4 100644 --- a/js/ui/search.js +++ b/js/ui/search.js @@ -481,8 +481,10 @@ const SearchResults = new Lang.Class({ this._cancellable.reset(); if (!terms) { - if (this._searchTimeoutId > 0) + if (this._searchTimeoutId > 0) { + this._searchTimeoutId = 0; GLib.source_remove(this._searchTimeoutId); + } return; }